package com.atguigu.springcloud.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author codingBee
 * @since 2021/5/3/19:39
 */
@Configuration
public class MySelfRule  {
    @Bean IRule myRule(){
        return new RandomRule();
    }
}
